#!/user/bin/env node

const http = require('http'),
      log = console.log;

http.createServer((req,res)=>{
  log(`\n${req.httpVersion} ${req.method} ${req.url}`);
  log(req.headers);
  log('');
  req.pipe(process.stdout);

  res.end('ok!');
}).listen(3000);
